/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Server.DTO;

import Server.BUS.StringUlti;

/**
 *
 * @author Trung
 */
public class UpdateNoWhereQuery extends UpdateQuery{
    public UpdateNoWhereQuery()
    {
        super();
    }
    
    
    public UpdateNoWhereQuery(String _queryString)
    {
        this.keyWord = "UPDATE_NOWHERE";
        this.queryString = StringUlti.formatString(_queryString);
        
        int begin = this.queryString.indexOf("UPDATE") + "UPDATE".length();
        int end = this.queryString.indexOf("SET") - 1;
        this.updateString = this.queryString.substring(begin, end);
        this.updateString = this.updateString.trim();
        
        begin = this.queryString.indexOf("SET") + "SET".length();
        this.setString = this.queryString.substring(begin);
        this.setString = this.setString.trim();
    }
}
